from django.urls import path
from . import views

urlpatterns = [
   # 判断用户名是否重复注册:GET /usernames/itcast/count/
   #path('usernames/匹配用户名路由转换器：变量/count/',views.UsernameCountView.as_view())
   path('usernames/<username:username>/count/',views.UsernameCountView.as_view()),

   # 手机号重复注册
   #
   path('mobiles/<mobile:mobile>/count/',views.MobileCountView.as_view()),

   # 用户注册
   # http://www.meiduo.site:8080/register/
   path('register/',views.RegisterView.as_view()),
]